package com.wlz;

import com.wlz.service.PayXmlService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 *  声明式 事务 xml 配置测试
 * @author wlz
 * @date 2022-06-01  9:17 下午
 */
public class MainXmlStarter {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");

		for (String beanDefinitionName : context.getBeanDefinitionNames()) {
			System.out.println(beanDefinitionName);
		}

		PayXmlService payXmlService = context.getBean("payXmlServiceImpl",PayXmlService.class);
		payXmlService.pay("123456789", 1);

	}
}
